import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import toVuePage from '@/components/toVuePage'

/*登陆页*/
import loginPage from '@/components/loginPage'
import homePage from '@/components/homePage'


Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'loginPage',
      component: loginPage
    },
		{
      path: '/homePage',
      name: 'homePage',//登录后，跳转到的页面
      component: homePage
    },
		{
      path: '/toVuePage',
      name: 'toVuePage',
      component: toVuePage
    }
  ]
})
